package leetcode.code0049;

import java.util.List;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution49 implements IDebug {

	public abstract List<List<String>> groupAnagrams(String[] strs);

	@Override
	public void debug1() {
		String str = "[\"eat\",\"tea\",\"tan\",\"ate\",\"nat\",\"bat\"]";
		String[] strs = HelpDebug.str2array2(str);
		String str1 = "[[\"bat\"],[\"nat\",\"tan\"],[\"ate\",\"eat\",\"tea\"]]";
		List<List<String>> e = HelpDebug.str2intlist2(str1);
		List<List<String>> r = this.groupAnagrams(strs);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str = "[\"\"]";
		String[] strs = HelpDebug.str2array2(str);
		String str1 = "[[\"\"]]";
		List<List<String>> e = HelpDebug.str2intlist2(str1);
		List<List<String>> r = this.groupAnagrams(strs);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String str = "[\"a\"]";
		String[] strs = HelpDebug.str2array2(str);
		String str1 = "[[\"a\"]]";
		List<List<String>> e = HelpDebug.str2intlist2(str1);
		List<List<String>> r = this.groupAnagrams(strs);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
